// Casting.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Person.h"
#include "Tweeter.h"
#include <iostream>
#include <string>
#include "Resource.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	Tweeter t("Kate","Gregory",123,"@gregKate");
	Person* p=&t;
	Tweeter* pt=dynamic_cast<Tweeter*>(p);
	cout<<pt->GetName()<<endl;

	int c=3;
	Resource f("lokal");
	Tweeter* pC=dynamic_cast<Tweeter*>(&f);

	int a;
	cin>>a;

	return 0;
}

